/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author FIRE
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PuOrderChgLog extends BasicModel<PuOrderChgLog> {
  'hid.djno'?: string; // 导入批号
}

export const boxFreeListData = (params?: PuOrderChgLog | any) =>
  defHttp.post<Page<PuOrderChgLog>>({ url: adminPath + '/btdm/boxfree/listData', params });

export const boxFreeExportData = (params?: PuOrderChgLog | any) =>
  defHttp.post<Page<PuOrderChgLog>>({ url: adminPath + '/btdm/boxfree/exportData', params });

export const deleteById = (params?: PuOrderChgLog | any) =>
  defHttp.post<Page<PuOrderChgLog>>({ url: adminPath + '/btdm/boxfree/deleteById', params });
// export const puOrderChgLogForm = (params?: PuOrderChgLog | any) =>
//   defHttp.get<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/form', params });

// export const puOrderChgLogSave = (params?: any, data?: PuOrderChgLog | any) =>
//   defHttp.postJson<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/save', params, data });

// export const puOrderChgLogDelete = (params?: PuOrderChgLog | any) =>
//   defHttp.get<PuOrderChgLog>({ url: adminPath + '/srm/puorder/chg/puOrderChgLog/delete', params });
